package com.xuyi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@RequestMapping("/test")
@Controller
public class TestController {

    @RequestMapping("/sayHello")
    @ResponseBody
    private Object sayHello(String name) {
        HashMap<String, Map<String, Integer>> map = new HashMap<>();

        HashMap<String, Integer> hashMap = new HashMap<>();

        hashMap.put("A", 1);

        map.put("B", hashMap);

        return map;
    }

}
